findElementsByTagName

abstract fun findElementsByTagName(tagName: String): List<Element>

Returns an immutable list of the Element objects found in the current search context by the given tagName. Returns an empty list if no elements were found.

Parameters

tagName

a string that represents the tag name of the HTML element

Throws

if the given tagName is empty

when this instance is closed